import request from '@/utils/request'

// 查询解除运单申请列表
export function listSecure(query) {
  return request({
    url: '/tws/secure/list',
    method: 'get',
    params: query
  })
}

// 查询解除运单申请详细
export function getSecure(id) {
  return request({
    url: '/tws/secure/' + id,
    method: 'get'
  })
}

// 新增解除运单申请
export function addSecure(data) {
  return request({
    url: '/tws/secure',
    method: 'post',
    data: data
  })
}

// 修改解除运单申请
export function updateSecure(data) {
  return request({
    url: '/tws/secure/updateSecure',
    method: 'post',
    data: data
  })
}

// 删除解除运单申请
export function delSecure(id) {
  return request({
    url: '/tws/secure/' + id,
    method: 'delete'
  })
}

// 驳回解除运单申请
export function rejectSecure(data) {
  return request({
    url: '/tws/secure/rejectSecure',
    method: 'post',
    data: data
  })
}
